package com.qmctl.rest.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qmctl.rest.bean.entroyorder.OrderLineClazz;

import java.io.Serializable;
@SuppressWarnings("serial")
@Entity
@Table(name="tEntryOrderLines",schema="")
public class EntryOrderLines implements Serializable{
  @Id
  private String orderLineId;
  private String outBizCode;
  private String orderLineNo;
  private String ownerCode;
  private String itemCode;
  private String itemId;
  private String itemName;
  private long planQty;
  private long actualQty;
  private String skuProperty;
  private double purchasePrice;
  private double retailPrice;
  private String inventoryType;
  private String productDate;
  private String expireDate;
  private String produceCode;
  private String batchCode;
  private String key1;
  private String key2;
  private String entryOrderId;
  private String remark;
  private String sourceOrderCode;
  private String subSourceOrderCode;
  public EntryOrderLines(){
  }
  public EntryOrderLines(OrderLineClazz orderLineClazz){
    orderLineId = "";
    outBizCode = orderLineClazz.getOutBizCode();
    orderLineNo = orderLineClazz.getOrderLineNo();
    ownerCode = orderLineClazz.getOwnerCode();
    itemCode = orderLineClazz.getItemCode();
    itemId = orderLineClazz.getItemId();
    itemName = orderLineClazz.getItemName();
    planQty = orderLineClazz.getPlanQty();
    skuProperty = orderLineClazz.getSkuProperty();
    purchasePrice = orderLineClazz.getPurchasePrice();
    retailPrice = orderLineClazz.getRetailPrice();
    inventoryType = orderLineClazz.getInventoryType();
    productDate = orderLineClazz.getProductDate();
    expireDate = orderLineClazz.getExpireDate();
    produceCode = orderLineClazz.getProduceCode();
    batchCode = orderLineClazz.getBatchCode();
    key1 = orderLineClazz.getExtendProps()!=null?orderLineClazz.getExtendProps().getKey1():"";
    key2 = orderLineClazz.getExtendProps()!=null?orderLineClazz.getExtendProps().getKey2():"";
    entryOrderId = "";
  }
  public EntryOrderLines(com.qmctl.rest.bean.deliveryorder.OrderLineClazz orderLineClazz){
	    orderLineId = "";
	    outBizCode = orderLineClazz.getOutBizCode();
	    orderLineNo = orderLineClazz.getOrderLineNo();
	    ownerCode = orderLineClazz.getOwnerCode();
	    itemCode = orderLineClazz.getItemCode();
	    itemId = orderLineClazz.getItemId();
	    itemName = orderLineClazz.getItemName();
	    planQty = orderLineClazz.getPlanQty();
	    inventoryType = orderLineClazz.getInventoryType();
	    productDate = orderLineClazz.getProductDate();
	    expireDate = orderLineClazz.getExpireDate();
	    produceCode = orderLineClazz.getProduceCode();
	    batchCode = orderLineClazz.getBatchCode();
	    entryOrderId = "";
  }
  public EntryOrderLines(com.qmctl.rest.bean.returnorder.OrderLineClazz orderLineClazz){
	    orderLineId = "";
	    //outBizCode = orderLineClazz.getOutBizCode();
	    orderLineNo = orderLineClazz.getOrderLineNo();
	    ownerCode = orderLineClazz.getOwnerCode();
	    itemCode = orderLineClazz.getItemCode();
	    itemId = orderLineClazz.getItemId();
	   // itemName = orderLineClazz.getItemName();
	    planQty = orderLineClazz.getPlanQty();
	    //skuProperty = orderLineClazz.getSkuProperty();
	   // purchasePrice = orderLineClazz.getPurchasePrice();
	    //retailPrice = orderLineClazz.getRetailPrice();
	    inventoryType = orderLineClazz.getInventoryType();
	    productDate = orderLineClazz.getProductDate();
	    expireDate = orderLineClazz.getExpireDate();
	    produceCode = orderLineClazz.getProduceCode();
	    batchCode = orderLineClazz.getBatchCode();
	   // key1 = orderLineClazz.getExtendProps().getKey1();
	   // key2 = orderLineClazz.getExtendProps().getKey2();
	    entryOrderId = "";
	  }  
  public String getOrderLineId(){
    return orderLineId;
  }
  public void setOrderLineId(String sOrderLineId){
    orderLineId = sOrderLineId;
  }
  public String getOutBizCode(){
    return outBizCode;
  }
  public void setOutBizCode(String sOutBizCode){
    outBizCode = sOutBizCode;
  }
  public String getOrderLineNo(){
    return orderLineNo;
  }
  public void setOrderLineNo(String sOrderLineNo){
    orderLineNo = sOrderLineNo;
  }
  public String getOwnerCode(){
    return ownerCode;
  }
  public void setOwnerCode(String sOwnerCode){
    ownerCode = sOwnerCode;
  }
  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public long getPlanQty(){
    return planQty;
  }
  public void setPlanQty(long iPlanQty){
    planQty= iPlanQty;
  }
  public String getSkuProperty(){
    return skuProperty;
  }
  public void setSkuProperty(String sSkuProperty){
    skuProperty = sSkuProperty;
  }
  public double getPurchasePrice(){
    return purchasePrice;
}
  public void setPurchasePrice(double dPurchasePrice){
    purchasePrice = dPurchasePrice;
  }
  public double getRetailPrice(){
    return retailPrice;
}
  public void setRetailPrice(double dRetailPrice){
    retailPrice = dRetailPrice;
  }
  public String getInventoryType(){
    return inventoryType;
  }
  public void setInventoryType(String sInventoryType){
    inventoryType = sInventoryType;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getKey1(){
    return key1;
  }
  public void setKey1(String sKey1){
    key1 = sKey1;
  }
  public String getKey2(){
    return key2;
  }
  public void setKey2(String sKey2){
    key2 = sKey2;
  }
  public String getEntryOrderId(){
    return entryOrderId;
  }
  public void setEntryOrderId(String iEntryOrderId){
    entryOrderId= iEntryOrderId;
  }
public long getActualQty() {
	return actualQty;
}
public void setActualQty(long actualQty) {
	this.actualQty = actualQty;
}
public String getRemarks() {
	return remark;
}
public void setRemarks(String remarks) {
	this.remark = remarks;
}
public String getSourceOrderCode() {
	return sourceOrderCode;
}
public void setSourceOrderCode(String sourceOrderCode) {
	this.sourceOrderCode = sourceOrderCode;
}
public String getSubSourceOrderCode() {
	return subSourceOrderCode;
}
public void setSubSourceOrderCode(String subSourceOrderCode) {
	this.subSourceOrderCode = subSourceOrderCode;
}
}
